import Ajax from "./ajax"

const SecurityApi = {}

SecurityApi.userMenus = (params) => {
    let url = "/security/user/menus"
    return Ajax.json(url, params)
}

SecurityApi.authz = (params) => {
    let url = "/security/user/authz"
    return Ajax.json(url, params)
}

SecurityApi.userRoles = (params) => {
    let url = "/security/user/role"
    return Ajax.json(url, params)
}

export default SecurityApi